﻿// -----------------------------------------------------------------------
// <copyright file="GameScreen.cs" company="Diddly Squad">
// </copyright>
// -----------------------------------------------------------------------
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace DiddlySquat
{
	using System;

	/// <summary>
	/// Screen that displays the actual game
	/// </summary>
	public class GameScreen : Screen
	{
		//Background texture for the screen
		readonly Texture2D gameScreenBackground;

		/// <summary>
		/// Initializes a new instance of the <see cref="GameScreen"/> class.
		/// </summary>
		/// <param name="theContent">The content.</param>
		/// <param name="theScreenEvent">The screen event.</param>
		public GameScreen(ContentManager theContent, EventHandler theScreenEvent)
			: base(theScreenEvent)
		{
			//Load the background texture for the screen
			gameScreenBackground = theContent.Load<Texture2D>("GameScreen");
		}
		
		
		/// <summary>
		/// Draws to the batch.
		/// </summary>
		/// <param name="theBatch">The batch.</param>
		public override void Draw(SpriteBatch theBatch)
		{
			theBatch.Draw(gameScreenBackground, Vector2.Zero, Color.White);
			base.Draw(theBatch);
		}
	}
}
